package com.itheima.ArrayList;

import java.util.ArrayList;

public class DmeoListArray01 {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        list.add("张三");
        list.add("李四");
        list.add("王五");
        list.add("赵六");
        //删除
        String sss = list.remove(0);
        //list.remove("张三");
        //修改
        String s = list.set(2,"周七");
        //取出
        String ss = list.get(2);
        //获取长度
        int size =  list.size();
        System.out.println("size = " + size);
        System.out.println("list = " + list);
    }
}
